package anonymous;

import java.math.BigDecimal;
import java.util.function.Consumer;

public class InnerClass {
    int count = 0;
    public Consumer<String> test(){
        String name = new String(Math.random()+"");
        String id = "12";
        BigDecimal bigDecimal = new BigDecimal(0);
        return (String code)->{
            //name = "asdfa";
            System.out.println(name+":"+bigDecimal.intValue());
        };
    }

    public static void main(String[] args) {
        InnerClass ic = new InnerClass();
        Consumer consumer = ic.test();
        consumer.accept("2018");
        Consumer consumer1 = ic.test();
        consumer1.accept("2018");
    }
}
